package com.clstu.ploy_.ployparameter;

public class Worker extends Employee{
    public Worker(String name, double salary) {
        super(name, salary);
    }

    @Override
    public double getAnnual() {
        return super.getAnnual()+getSalary();
    }

    public void work(){
        System.out.println("Worker "+super.getName()+" is working ...");
    }
}
